package com.ceba.test.modules.regist.service;

import com.ceba.test.modules.regist.dao.NewEnterPriseDao;
import com.ceba.test.modules.regist.entity.NewEnterprise;

public class NewEnterpriseService {

    private NewEnterPriseDao newEnterPriseDao;

    public boolean getAddEnterprise(NewEnterprise newEnterprise,String userId){
        return newEnterPriseDao.getAddEnterprise(newEnterprise,userId);
    }
    public boolean updateEnterprise(NewEnterprise newEnterprise,String userId){
        return newEnterPriseDao.updateEnterprise(newEnterprise,userId);
    }

    public boolean queryEnterpriseByName(String enterpriseName){
        return newEnterPriseDao.queryEnterpriseByName(enterpriseName);
    }


    /**
     * 获取单个公司用户信息
     *
     */
    public NewEnterprise getNewEnterprise (String Id) throws  Exception{
        return  newEnterPriseDao.getNewEnterprise(Id);
    }
    public boolean getDeleteEnterprise(String id){
        return newEnterPriseDao.getDeleteEnterprise(id);
    }
    public NewEnterPriseDao getNewEnterPriseDao() {
        return newEnterPriseDao;
    }

    public void setNewEnterPriseDao(NewEnterPriseDao newEnterPriseDao) {
        this.newEnterPriseDao = newEnterPriseDao;
    }

}
